package com.njwb.mapper;

import com.njwb.entity.User;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Description: 类的描述
 * Author: yuandeyin@itany.com
 * Date: 2025-08-12 13:43
 * Version: 1.0
 */
public class UserRowMapping implements  RowMapping<User>{
    @Override
    public User mapper(ResultSet rs) throws SQLException {
        User user = new User();
        user.setPhone(rs.getString("t_phone"));
        user.setPwd(rs.getString("t_pwd"));
        return user;
    }
}
